package com.unipay.mybatis.mapper;

import com.unipay.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserMapper {

    /*
     * @description:
     * @date: 2023/1/11 21:35
     * @param: [username]
     * @return: User
     **/
    User getUserByID(String username);

    /*
     * @description: 验证登录
     * @date: 2023/1/11 21:53
     * @param:
     * @return:
     **/
    User checkLogin(String username, String password);
    User checkLoginByMap(Map<String, Object> map);

    int addUser(User user);

    /*
     * @description: 验证登录，通过“注解”
     * @date: 2023/1/13 19:32
     * @param:
     * @return: User实体类对象
     **/
    User checkLoginByParam(@Param("username") String username, @Param("password") String password);
}
